import {createRouter, createWebHistory} from 'vue-router'


const routes = [
    {
        path: '/',
        name: 'home',
        redirect: '/index'
    },
    {
        path: '/index',
        name: 'index',
        component: () => import('../views/index')
    },
    {
        path: '/one',
        name: 'one',
        component: () => import('../views/charts/one')
    },
    {
        path: '/two',
        name: 'two',
        component: () => import('../views/charts/two')
    },
    {
        path: '/three',
        name: 'three',
        component: () => import('../views/charts/three')
    },
    {
        path: '/four',
        name: 'four',
        component: () => import('../views/charts/four')
    },
    {
        path: '/five',
        name: 'five',
        component: () => import('../views/charts/five')
    },
    {
        path: '/six',
        name: 'six',
        component: () => import('../views/charts/six')
    },
    {
        path: '/seven',
        name: 'seven',
        component: () => import('../views/charts/seven')
    },
    {
        path: '/eight',
        name: 'eight',
        component: () => import('../views/charts/eight')
    },
    {
        path: '/nine',
        name: 'nine',
        component: () => import('../views/charts/nine')
    },
    {
        path: '/ten',
        name: 'ten',
        component: () => import('../views/charts/ten')
    },
    {
        path: '/eleven',
        name: 'eleven',
        component: () => import('../views/charts/eleven')
    },
    {
        path: '/twelve',
        name: 'twelve',
        component: () => import('../views/charts/twelve')
    },
    {
        path: '/thirteen',
        name: 'thirteen',
        component: () => import('../views/charts/thirteen')
    },
    {
        path: '/life',
        name: 'Life',
        component: () => import( '@/components/Life/index')
    },
    {
        path: '/test',
        name: 'Test',
        component: () => import('@/components/Test/index')
    },
    {
        path: '/basic1',
        name: 'Basic1',
        component: () => import('@/components/BasicApi/Part1')
    },
    {
        path: '/basic2',
        name: 'Basic2',
        component: () => import('@/components/BasicApi/Part2')
    },
    {
        path: '/basic3',
        name: 'Basic3',
        component: () => import('@/components/BasicApi/Part3')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
